package monitoring.sla.parser;

import java.util.HashMap;
import java.util.List;

import monitoring.sla.latency.Latency;
import monitoring.sla.throughput.Throughput;

public abstract class SlaBean {
	
	private static HashMap<String, SlaBean> slaLanguage;
	
	public static SlaBean getSlaBean(String slaName){
		return slaLanguage.get(slaName);
	}
	
	public static void addSlaLanguage(String slaName, SlaBean slaParser){
		if(slaLanguage==null)
			slaLanguage=new HashMap<String, SlaBean>();
		slaLanguage.put(slaName, slaParser);
	}
	public abstract void parse(byte[] b);
	public abstract List<Throughput> getThroughputList();
	public abstract List<Latency> getLatencyList();

}
